home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
wtjmarch.zip
/
LIFE.ZIP
/
CLIFE.TXT
< prev
next >
Wrap
Text File
|
1992-01-27
|
2KB
|
68 lines
The Game of Life
written in C++
CLife.TXT
Introduction
------------
CLife is a Windows program written in C++ that illustrates
the use of the ObjectWindows application framework. This program
was originally written in Pascal by M. Zack Urlocker and was
translated into C++ by Bruce Eckel.
The files include:
CLife.EXE - Executable program file
CLife.PAS - Turbo C++ for Windows source code
CLife.RES - Windows resource file
CLife.TXT - This file
If you have received a ZIP file, you must unzip it first.
Using Life
----------
This program requires Microsoft Windows 3.0 or later. To start the
program start Windows and then use the File Run command to start
CLife.EXE. Or run life directly from the DOS C:> prompt by typing:
WIN CLife
Like other versions of Life, this version allows you to draw cells
on the screen and then mutate them according to certain rules.
If an empty cell has exactly three neighbors it will be born. If an
occupied cell fewer than two or more than three neighbors it will
die.
The program features:
- Mouse and keyboard support for drawing cells
- Zoomable, resizable screen
- Optional grid
- Selectable timer speed
- Trace mode
- Random and non-random starting patterns
NOTES
-----
Version 1.0 03/26/91 (Pascal)
Version 1.0 04/04/91 (C++)
-Written in Turbo C++ for Windows
Version 1.0 01/27/92 (C++)
-Corrected off by one bug in drawcells routine
ObjectWindows Users
-------------------
This program illustrates some of the basic ideas common to many Windows
programs including mouse and keyboard handling, graphics, resizing,
rescaling and the use of timers. Feel free to experiment with the
source code to learn how to implement similar features in your own
programs.
* * *